package com.bst.bsj.common.dal.ibatis;


import org.springframework.stereotype.Service;

import com.bst.bsj.common.dal.daointerface.SeedlingNamesConfigAndTypeRelationDAO;
import com.bst.bsj.common.dal.dataobject.SeedlingNamesConfigAndTypeRelation;
import com.sylinxsoft.tools.dao.impl.CommonBaseDAOImpl;

@Service("seedlingNamesConfigAndTypeRelationDAO")
public class SeedlingNamesConfigAndTypeRelationDAOImpl extends CommonBaseDAOImpl implements
    SeedlingNamesConfigAndTypeRelationDAO {

  @Override
  public void insert(SeedlingNamesConfigAndTypeRelation andTypeRelation) {
    getSqlMapClientTemplate().insert(getNameSpace() + ".MS_INSERT", andTypeRelation);
  }

  @Override
  public int delete(Long id) {
    return getSqlMapClientTemplate().delete(getNameSpace() + ".MS_DELETE", id);
  }

}
